import { AuthCode } from '@/modules/auth';
const agencyRoutes = [
  {
    path: '/agency',
    name: 'Agency',
    component: 'Layout',
    meta: { title: '分销系统' },
    redirect: { name: 'AgencyAgentList' },
    children: [
      {
        path: 'agentList',
        name: 'AgencyAgentList',
        component: () => import('@/views/crm-agency/agent-list/index.vue'),
        meta: { title: '代理商', authCode: AuthCode.AGENCY_AGENT_LIST, icon: 'icon-agent' }
      },
      {
        path: 'dyjAgent',
        name: 'AgencyDyjAgent',
        meta: { title: '大赢加代理管理', icon: 'icon-agent-dyj', alwaysShow: true },
        children: [
          {
            path: 'agentData',
            name: 'AgencyDyjAgentAgentData',
            component: () => import('@/views/crm-agency/dyj-agent/agent-data/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_LIST, title: '代理数据' }
          },
          {
            path: 'exchangeUserList',
            name: 'AgencyDyjAgentExchangeUserList',
            component: () => import('@/views/crm-agency/dyj-agent/exchange-user-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_LIST, hide: true, title: '新老用户' }
          },
          {
            path: 'remitList',
            name: 'AgencyDyjAgentRemitList',
            component: () => import('@/views/crm-agency/dyj-agent/remit-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_SETLEMENT_CHECK, title: '打款列表' }
          },
          {
            path: 'invoiceCenter',
            name: 'AgencyDyjAgentInvoiceCenter',
            component: () => import('@/views/crm-agency/dyj-agent/invoice-center/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_INVOICE_LIST, title: '发票中心' }
          },
          {
            path: 'agentOrder',
            name: 'AgencyDyjAgentAgentOrder',
            component: () => import('@/views/crm-agency/dyj-agent/agent-order/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_ORDER_LIST, title: '代理订单' }
          }
        ]
      },
      {
        path: 'kgjAgent',
        name: 'AgencyKgjAgent',
        meta: { title: '考古加代理管理', icon: 'icon-agent-kgj', alwaysShow: true },
        children: [
          {
            path: 'agentList',
            name: 'AgencyKgjAgentAgentList',
            component: () => import('@/views/crm-agency/kgj-agent/agent-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_LIST, title: '代理列表' }
          },
          {
            path: 'exchangeCodeList',
            name: 'AgencyKgjAgentExchangeCodeList',
            component: () => import('@/views/crm-agency/kgj-agent/exchange-code-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_EXCHANGE_CODE_LIST, hide: true, title: '兑换码查询' }
          },
          {
            path: 'exchangeUserList',
            name: 'AgencyKgjAgentExchangeUserList',
            component: () => import('@/views/crm-agency/kgj-agent/exchange-user-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_LIST, hide: true, title: '新老用户' }
          },
          {
            path: 'agentSettlementList',
            name: 'AgencyKgjAgentAgentSettlementList',
            component: () => import('@/views/crm-agency/kgj-agent/agent-settlement-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_SETLEMENT_LIST, title: '代理结算列表' }
          },
          {
            path: 'agentInvoicing',
            name: 'AgencyKgjAgentAgentInvoicing',
            component: () => import('@/views/crm-agency/kgj-agent/agent-invoicing/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_INVOICE_LIST, title: '代理开票' }
          },
          {
            path: 'exchangeCode',
            name: 'AgencyKgjAgentExchangeCode',
            component: () => import('@/views/crm-agency/kgj-agent/exchange-code/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_EXCHANGE_LIST, title: '兑换码查询' }
          },
          {
            path: 'agentOrder',
            name: 'AgencyKgjAgentAgentOrder',
            component: () => import('@/views/crm-agency/kgj-agent/agent-order/index.vue'),
            meta: { authCode: AuthCode.AGENCY_AGENT_ORDER_LIST, title: '代理订单' }
          }
        ]
      },
      {
        path: 'lecturerList',
        name: 'AgencyLecturerLecturerList',
        component: () => import('@/views/crm-agency/lecturer/lecturer-list/index.vue'),
        meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, title: '讲师列表', icon: 'icon-lecture' }
      },
      {
        path: 'dyjLecturer',
        name: 'AgencyDyjLecturer',
        meta: { title: '大赢加讲师数据', icon: 'icon-lecture-dyj', alwaysShow: true },
        children: [
          {
            path: 'lecturerData',
            name: 'AgencyDyjLecturerLecturerData',
            component: () => import('@/views/crm-agency/dyj-lecturer/lecturer-data/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, title: '业务数据' }
          },
          {
            path: 'lecturerList',
            name: 'AgencyDyjLecturerLecturerList',
            component: () => import('@/views/crm-agency/dyj-lecturer/lecturer-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, title: '讲师发放管理' }
          },
          {
            path: 'bindingList/:agent_id',
            name: 'AgencyDyjLecturerBindingList',
            component: () => import('@/views/crm-agency/dyj-lecturer/binding-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, hide: true, title: '绑定列表' }
          },
          {
            path: 'commissionList/:agent_id',
            name: 'AgencyDyjLecturerCommissionList',
            component: () => import('@/views/crm-agency/dyj-lecturer/commission-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, hide: true, title: '佣金列表' }
          },
          {
            path: 'exchangeList/:agent_id',
            name: 'AgencyDyjLecturerExchangeList',
            component: () => import('@/views/crm-agency/dyj-lecturer/exchange-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, hide: true, title: '兑换列表' }
          },
          {
            path: 'lecturerSettlement',
            name: 'AgencyDyjLecturerLecturerSettlement',
            component: () => import('@/views/crm-agency/dyj-lecturer/lecturer-settlement/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_SETLEMENT_LIST, title: '讲师结算列表' }
          }
        ]
      },
      {
        path: 'kgjLecturer',
        name: 'AgencyKgjLecturer',
        meta: { title: '考古加讲师数据', icon: 'icon-lecture-kgj', alwaysShow: true },
        children: [
          {
            path: 'lecturerData',
            name: 'AgencyKgjLecturerLecturerData',
            component: () => import('@/views/crm-agency/kgj-lecturer/lecturer-data/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, title: '业务数据' }
          },
          {
            path: 'lecturerList',
            name: 'AgencyKgjLecturerLecturerList',
            component: () => import('@/views/crm-agency/kgj-lecturer/lecturer-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, title: '讲师发放管理' }
          },
          {
            path: 'lecturerSettlement',
            name: 'AgencyKgjLecturerLecturerSettlement',
            component: () => import('@/views/crm-agency/kgj-lecturer/lecturer-settlement/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_SETLEMENT_LIST, title: '讲师结算列表' }
          },
          {
            path: 'discountList',
            name: 'AgencyKgjLecturerDiscountList',
            component: () => import('@/views/crm-agency/kgj-lecturer/discount-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_DISCOUNT_LIST, title: '折扣活动管理' }
          },
          {
            path: 'bindingList/:agent_id',
            name: 'AgencyKgjLecturerBindingList',
            component: () => import('@/views/crm-agency/kgj-lecturer/binding-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, hide: true, title: '绑定列表' }
          },
          {
            path: 'commissionList/:agent_id',
            name: 'AgencyKgjLecturerCommissionList',
            component: () => import('@/views/crm-agency/kgj-lecturer/commission-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, hide: true, title: '佣金列表' }
          },
          {
            path: 'exchangeList/:agent_id',
            name: 'AgencyKgjLecturerExchangeList',
            component: () => import('@/views/crm-agency/kgj-lecturer/exchange-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, hide: true, title: '兑换列表' }
          },
          {
            path: 'promotionList/:agent_id',
            name: 'AgencyKgjLecturerPromotionList',
            component: () => import('@/views/crm-agency/kgj-lecturer/promotion-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_PROMOTION_LIST, hide: true, title: '推广列表' }
          },
          {
            path: 'promoteLinkList/:agent_id',
            name: 'AgencyKgjLecturerPromoteLinkList',
            component: () => import('@/views/crm-agency/kgj-lecturer/promote-link-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_PROMOTION_LINK_LIST, hide: true, title: '推广链接列表' }
          }
        ]
      },
      {
        path: 'adLecturer',
        name: 'AgencyAdLecturer',
        meta: { title: '创意讲师数据', icon: 'icon-lecture-ad', alwaysShow: true },
        children: [
          {
            path: 'lecturerData',
            name: 'AgencyAdLecturerLecturerData',
            component: () => import('@/views/crm-agency/ad-lecturer/lecturer-data/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, title: '业务数据' }
          },
          {
            path: 'lecturerList',
            name: 'AgencyAdLecturerLecturerList',
            component: () => import('@/views/crm-agency/ad-lecturer/lecturer-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, title: '讲师发放管理' }
          },
          {
            path: 'lecturerSettlement',
            name: 'AgencyAdLecturerLecturerSettlement',
            component: () => import('@/views/crm-agency/ad-lecturer/lecturer-settlement/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_SETLEMENT_LIST, title: '讲师结算列表' }
          },
          {
            path: 'bindingList/:agent_id',
            name: 'AgencyAdLecturerBindingList',
            component: () => import('@/views/crm-agency/ad-lecturer/binding-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, hide: true, title: '绑定列表' }
          },
          {
            path: 'commissionList/:agent_id',
            name: 'AgencyAdLecturerCommissionList',
            component: () => import('@/views/crm-agency/ad-lecturer/commission-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_LIST, hide: true, title: '佣金列表' }
          },
          {
            path: 'promoteLinkList/:agent_id',
            name: 'AgencyAdLecturerPromoteLinkList',
            component: () => import('@/views/crm-agency/ad-lecturer/promote-link-list/index.vue'),
            meta: { authCode: AuthCode.AGENCY_LECTURER_PROMOTION_LINK_LIST, hide: true, title: '推广链接列表' }
          }
        ]
      }
    ]
  }
];

export default agencyRoutes;
